# Contributor: Firmicus <francois.archlinux.org>  

pkgname=perl-text-diff
_realname=Text-Diff
pkgver=1.41
pkgrel=2
pkgdesc="Perform diffs on files and record sets "
arch=('any')
url="http://search.cpan.org/dist/${_realname}"
license=('GPL' 'PerlArtistic')
depends=('perl-algorithm-diff>=1.1900')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/O/OV/OVID/${_realname}-${pkgver}.tar.gz) 
md5sums=('30d56e6dd5551ca16b8e16cc7299dc21')

build() {
  cd $srcdir/${_realname}-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor  
  make 
}
package() {
  cd $srcdir/${_realname}-${pkgver}
  make install DESTDIR=$pkgdir 
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
